package com.aacar.service.wash.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aacar.dao.WasherDao;
import com.aacar.dto.wash.UserDto;
import com.aacar.entity.Washer;
import com.aacar.service.wash.WashLoginService;
import com.aacar.vo.wash.WasherVo;

@Service("washLoginService")
public class WashLoginServiceImpl implements WashLoginService {
	
	@Autowired
	private WasherDao washerDao;
	
	public WasherVo getWashUserInfo(UserDto userDto) {
		Washer washer = new Washer();
		washer.setPhoneNo(userDto.getPhoneNo());
		washer.setLoginPwd(userDto.getPassWord());
		return this.washerDao.getWashUserInfo(washer);
	}
	
	
}
